package com.gzc.pm.enum
{
	[Bindable]
	public class AlarmRuleEnum
	{
		public function AlarmRuleEnum(value:uint=0, name:String="", desc:String="", defaultValue:uint=0)
		{
			this.value = value;
			this.name = name;
			this.desc = desc;
			this.defaultValue = defaultValue;
		}
		
		public var value:uint;
		public var name:String;
		public var desc:String;
		public var defaultValue:uint;
		
		public static const RULE1:AlarmRuleEnum = new AlarmRuleEnum(0, '', '1个点，距离中心线大于{0}个标准差', 3);
		public static const RULE2:AlarmRuleEnum = new AlarmRuleEnum(1, '', '连续{0}个点，在中心线同一侧', 9);
		public static const RULE3:AlarmRuleEnum = new AlarmRuleEnum(2, '', '连续{0}个点，全部递增或全部递减', 6);
		public static const RULE4:AlarmRuleEnum = new AlarmRuleEnum(3, '', '连续{0}个点，上下交错', 14);
		public static const RULE5:AlarmRuleEnum = new AlarmRuleEnum(4, '', '{0}个点中，有{1}个距离中心线（同侧）大于2个标准差', 2);
		public static const RULE6:AlarmRuleEnum = new AlarmRuleEnum(5, '', '{0}个点中，有{1}个距离中心线（同侧）大于1个标准差', 4);
		public static const RULE7:AlarmRuleEnum = new AlarmRuleEnum(6, '', '连续{0}个点，距离中心线（任一侧）1个标准差以内', 15);
		public static const RULE8:AlarmRuleEnum = new AlarmRuleEnum(7, '', '连续{0}个点，距离中心线（任一侧）大于1个标准差', 8);
		
	}
}